//
//  Landing.m
//  League of Legends
//
//  Created by huanghui on 16/6/14.
//  Copyright © 2016年 huanghui. All rights reserved.
//

#import "Landing.h"

@implementation Landing
{
    NSString *name ;
    NSString  *passwd;
    

}

-(void)landing
{
    NSLog(@"请输入账号名：");
    char *_name;
    _name = malloc(20);
    scanf("%s",_name);
    name = [[NSString alloc]initWithCString:_name encoding:NSUTF8StringEncoding];
    [self EnterPassword];
    
    
}
-(void)EnterPassword
{

    NSLog(@"请输入密码：");
    char *Psword;
    Psword = malloc(20);
    scanf("%s",Psword);
    passwd = [[NSString alloc]initWithCString:Psword encoding:NSUTF8StringEncoding];
    if([name isEqualToString:@"huanghui"] && [passwd isEqualToString:@"123" ]){
        
        NSLog(@"密码正确");
        [self.delegete Ccount:name Password:passwd success:YES];
        
        
    
    }

    
}



@end
